package cn.stylefeng.guns.sys.modular.system.service.impl;

import cn.stylefeng.guns.base.pojo.page.LayuiPageFactory;
import cn.stylefeng.guns.sys.modular.system.entity.BtyWlCheliang;
import cn.stylefeng.guns.sys.modular.system.mapper.BtyWlCheliangMapper;
import cn.stylefeng.guns.sys.modular.system.service.BtyWlChelianngService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

@Service
public class BtyWlChelianngServiceImpl extends ServiceImpl<BtyWlCheliangMapper, BtyWlCheliang> implements BtyWlChelianngService {

    @Resource
    private BtyWlCheliangMapper mapper;

    /**
     * 获取首页列表
     * @param btyWlCheliang
     * @return
     */
    @Override
    public Page<Map<String, Object>> list(BtyWlCheliang btyWlCheliang) {
        Page page = LayuiPageFactory.defaultPage();
        return this.mapper.list(page, btyWlCheliang);
    }

    /**
     * 新增数据
     * @param btyWlCheliang
     */
    @Override
    public void add(BtyWlCheliang btyWlCheliang) {
        mapper.add(btyWlCheliang);
    }
}
